ChangeKind
TheChangeKind
method should change this part's preferred kind.
void ChangeKind (in ODType kind);
kind
- The preferred kind to assign to this part.
DISCUSSION
OpenDoc calls this method if the user has chosen a new preferred kind for this part in the Part Info dialog box (for example, a request that a Styled Text part change into an ASCII Text part). Your part must be able to change from the current part kind to any other kind it supports.After your part's
ChangeKind
method executes successfully, your part should begin using the specified part kind as its preferred kind and begin manipulating your part's data in the new format. Your part should write the preferred kind into akODPropPreferredKind
property in its storage unit and store its part kinds in order from highest fidelity to lowest.OVERRIDING
When you subclassODPart
, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely. Your override method should always be implemented, not just implemented in the case of a part supporting multiple kinds.SEE ALSO
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Consequences of Changing Part Editor or Part Kind" on page 487 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help